package com.guarantee.server.common.replay;


import com.guarantee.server.common.utils.Pair;

/******************************
 * 创建日期: 2018/1/15 16:57
 * 创建作者：Linyt
 * 文件名称：ReplyCode
 * 版本：
 * 功能：
 * 最后修改时间：2018/1/15 16:57
 * 修改记录：
 *****************************************/
public interface ReplyCode {

    interface SYS {
        Pair<Integer, String> SUCCESS = new Pair<>(200, "成功");
        Pair<Integer, String> FAIL = new Pair<>(500, "操作有误请联系客服");
        Pair<Integer, String> SERVER_ERROR = new Pair<>(1001, "服务器繁忙");
        Pair<Integer, String> NO_LOGIN = new Pair<>(1002, "身份验证已过期");
        Pair<Integer, String> UNAUTHORIZED = new Pair<>(1003, "没有权限");
        Pair<Integer, String> PARAMS_NOT_NULL = new Pair<>(1004, "参数不能为空");
        Pair<Integer, String> PARAMS_ERROR = new Pair<>(1005, "参数有误");
        Pair<Integer, String> VERIFICATION_NOT_PASS = new Pair<>(1006, "验证不通过");
        Pair<Integer, String> VERIFICATION_PASS = new Pair<>(1007, "验证通过");
        Pair<Integer, String> PARAMS_FORMAT_ERROR = new Pair<>(1009, "参数格式错误");
        Pair<Integer, String> DATA_NOTEXIST = new Pair<>(1010, "数据不存在");
        Pair<Integer, String> DATA_EXIST = new Pair<>(300, "数据已存在");
        Pair<Integer, String> NEED_RESTART_FLOW = new Pair<>(1011, "验证次数或时间超限，需重新发起申请");
    }

    interface LOGIN {
        Pair<Integer, String> USER_NO_EXIST = new Pair<>(1101, "用户不存在");   // 用户不存在
        Pair<Integer, String> USERNAME_PW_NOT_NULL = new Pair<>(1102, "用户名密码不为空"); // 用户名密码不为空
        Pair<Integer, String> PW_ERROR = new Pair<>(1103, "密码错误"); //密码错误
        Pair<Integer, String> ACCOUNT_DISABLED = new Pair<>(1104, "账号禁用"); //账号禁用
        Pair<Integer, String> CODE_DISABLED = new Pair<>(1105, "一键登录验证失败"); //账号禁用
        Pair<Integer, String> ACCOUNT_EXIST = new Pair<>(1104, "账号已存在");
        Pair<Integer, String> COMPANY_NOTEXIST = new Pair<>(1106, "公司不存在");

    }


}
